package com.lobo.blog.service;

import com.github.pagehelper.PageInfo;
import com.lobo.blog.entity.Tag;
import com.lobo.blog.exception.AllReadyBeenDeletedException;
import com.lobo.blog.exception.TagNotFoundException;

import java.util.List;

/**
 * @authoer:MacieSerenity
 * @createDate: 2022/9/29
 * @description:
 */
public interface AdminTagService {
    int saveTag(Tag Tag);

    Tag getTagByTagId(Integer TagId) throws TagNotFoundException;

    PageInfo<Tag> getTags(Integer pageNum);

    List<Tag> getAllTags();

    int updateTag(Tag Tag);

    int deleteTagById(Integer id) throws AllReadyBeenDeletedException;

    List<Tag> getTagByIds(String ids);
}
